

<div id="buscar"  >
    <form class="well form-search" action="<?php echo base_url() . "index.php/titulo/presearch" ?>" method="post" >
        <input type="text" class="input-medium search-query" name="txtsearch">
        <select id="select02"  name="tipo_busqueda" class="span2">
            <option value="1">CEDULA</option>
            <option value="2">APELLIDO</option>
            <option value="3">NOMBRE</option>
        </select>
        <button type="submit" class="btn">Buscar</button>
    </form> 
</div>
<br/>
<br/>
<br/>
<div id="tabla" >
    <table class="table table-bordered table-striped table-condensed">
        <caption><h3>LISTADO DE TITULOS DE DOCENTES </h3></caption>
        <thead>
            <tr>
                <th>NRO. CEDULA</th>
                <th>APELLIDOS</th>
                <th>NOMBRES</th>
                <th>NIVEL</th>
                <th>TITULO</th>
                <th colspan="2" align ="center">Acciones</th>
            </tr>
        </thead>
        <tbody>
            <?php
            if (!empty($titulo)) {
                foreach ($titulo as $i => $row) {
                    ?>
                    <tr>
                        <td><?php echo $row['cedula_pers'] ?></td>
                        <td><?php echo $row['apellido_pers'] ?></td>
                        <td><?php echo $row['nombre_pers'] ?></td>
                        <td><?php
                            switch ($row['nivel_tit']) {
                                case 0: echo "NINGUNO";
                                    break;
                                case 1: echo "TECNICO SUPERIOR";
                                    break;
                                case 2: echo "TECNOLOGICO SUPERIOR";
                                    break;
                                case 3: echo "TERCER NIVEL";
                                    break;
                                case 4: echo "DOCTOR EN FILOSOFIA";
                                    break;
                                case 5: echo "DIPLOMADO SUPERIOR";
                                    break;
                                case 6: echo "ESPECIALISTA";
                                    break;
                                case 7: echo "MAGISTER";
                                    break;
                                case 8: echo "DOCTOR Ph. D";
                                    break;
                            }
                            ?></td>
                        <td><?php echo $row['denom_tit'] ?></td>

                        <td>
                            <a href='<?php echo (base_url() . "index.php/titulo/actualizar/upd/" . $row['ide_doc'] . "/" . $row['ide_tit']); ?>'>
                                <i class="icon-edit"></i>Editar</a>
                        </td>
                        <td>
                            <a href='<?php echo (base_url() . "index.php/titulo/actualizar/del/" . $row['ide_doc'] . "/" . $row['ide_tit']); ?>'>
                                <i class="icon-remove"></i>Eliminar</a></td>

                    </tr>
                    <?php
                }
            }
            ?>
        </tbody>
    </table>        
</div>
<div id="agregar">
    <form class="well" action="<?php echo base_url() . "index.php/titulo/crear" ?>" method="post" >
        <input class="btn" type="submit"  value="Crear Nueva Titulo">


    </form> 
</div>
